how to get query param in javascript

49

how to get query param in javascript -

const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');

Comments

Submit
0 Comments